#coding=utf-8
from django.db import models

# Create your models here.

class Tag(models.Model):
    tagName = models.CharField('标签名', max_length = 32, unique = True)
    
    def __unicode__(self):
        return '%s' % (self.tagName)
    
    def get_absolute_url(self):
        return "/t/%s/" % self.tagName
    
    class Meta:
        verbose_name_plural = '标签'
